FROM  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/library/debian:12
LABEL authors="kdly"
RUN rm -rf /etc/apt/sources.list /etc/apt/sources.list.d/
COPY sources.list /etc/apt/sources.list
RUN apt update && \
    apt install python3 python3-dev python3-pip default-libmysqlclient-dev \
    pkg-config  build-essential supervisor \
    gcc libmariadb-dev -y && \
    pip install --upgrade  pip -i  https://mirrors.ustc.edu.cn/pypi/simple/ --break-system-packages && \
    apt clean
